package br.pucrio.inf;

import br.pucrio.inf.tamdera.TamderaController;


public class Tamdera {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		final String specPath = "./src/arch.rules";
		final String metricFilePath = "./src/metric.csv";

		//File currentDir = new File(".");

		//final JFileChooser fileChooser = new JFileChooser(currentDir);

		//		fileChooser.setMultiSelectionEnabled(false);
		//		fileChooser.setDialogType(JFileChooser.OPEN_DIALOG);
		//		fileChooser.setFileSelectionMode( JFileChooser.DIRECTORIES_ONLY);
		//		fileChooser.setDialogTitle("Select The Project Source Directory");
		//		int choice = fileChooser.showOpenDialog(null);
		//		File file = fileChooser.getSelectedFile();

		//"prolog/projectRepresentation.pl"
		//"prolog/healthwatcher.pl"
		
		TamderaController controller = new TamderaController( 
				specPath
				, metricFilePath
				, "prolog/HWv4.pl");
		controller.checkConformanceOfDesignRules();
		//controller.checkConsistencyOfDesignRules();

		//		if (file != null && choice == JFileChooser.APPROVE_OPTION) {
		//			String projectSourcePath = file.getPath();
		//			System.out.println("=>" + projectSourcePath);
		//			TamderaController controller = new TamderaController(specPath, "C:\Users\Alessandro\workspaces\dissertacao\project2testTamdera\src", null);
		//			
		//			
		//		}

	}

}
